import java.util.concurrent.CountDownLatch;

/**
 * 用于模拟Ethernet帧的发送过程
 */
public class Ethernet {
    public static void main(String[] args) {

        //创建N个Host类

        //创建一个Bus变量模拟总线，初始化为0

        //子线程向总线发送数据
        Bus bus = new Bus();
        CountDownLatch countDownLatch = new CountDownLatch(100);

        for (int i = 0; i < 100; i++) {
            Host host = new Host(i, bus);
            new Thread(host).start();

        }

    }
}
